using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using BLL;

namespace DACNPM.ReportFile
{
    public partial class DonDatHangReport : DevExpress.XtraReports.UI.XtraReport
    {
        public DonDatHangReport()
        {
            InitializeComponent();
        }

        public void Load(String tenNCC,String id)
        {

            lblMaSoDonDatHang.Text = id;
            lblNgayLamDon.Text = DateTime.Now.ToShortDateString();            

            xrMaHang.DataBindings.Add("Text", DataSource, "id_Hang");
            xrTenHang.DataBindings.Add("Text", DataSource, "TenHang");
            xrSoLuong.DataBindings.Add("Text", DataSource, "SoLuong");

            xrNgayDat.DataBindings.Add("Text", DataSource, "NgayDat");
            xrNgayGiao.DataBindings.Add("Text", DataSource, "NgayGiao");

        }
    }
}
